(function($){
	$.fn.navCutover=function(settings){
		if(this.length<1){return;};
		settings=$.extend({
			title:"h1",
			list:"ul",
			events:"click",
			type:"slide",
			speed:100,
			lastclose:false
		},settings);

		var nav_obj=this;
		var nav_title=nav_obj.find(settings.title);
		var nav_list=nav_obj.find(settings.list);

		nav_obj.delegate(settings.title,settings.events,function(){
			var now_title=$(this);
			var not_title=now_title.siblings(settings.title);
			var now_list=now_title.next(settings.list);
			var not_list=now_list.siblings(settings.list);

			if(settings.lastclose&&now_title.hasClass("selected")){return false;};

			not_title.removeClass("selected");
			now_title.toggleClass("selected");
			switch(settings.type){
				case "slide":
					not_list.slideUp(settings.speed);
					now_list.slideToggle(settings.speed);
					break;
				case "toggle":
					not_list.hide();
					now_list.toggle();
					break;
			};
		});
	};
})(jQuery);
$(function(){
	$("#left").navCutover();	
});
$(function(){
var winWidth = 0;
var winHeight = 0;
function findDimensions() 
{
if (window.innerWidth)
winWidth = window.innerWidth;
else if ((document.body) && (document.body.clientWidth))
winWidth = document.body.clientWidth;
if (window.innerHeight)
winHeight = window.innerHeight;
else if ((document.body) && (document.body.clientHeight))
winHeight = document.body.clientHeight;
if (document.documentElement && document.documentElement.clientHeight &&
document.documentElement.clientWidth)
{
winHeight = document.documentElement.clientHeight;
winWidth = document.documentElement.clientWidth;
}
$("#rightFrame").css({width:winWidth - 121+"px"});
$("#rightFrame").css({height:winHeight-147+"px"});
$(".right").css({height:winHeight-147+"px"});
$("#left").css({height:winHeight-136+"px"});

}
findDimensions(); 
window.onresize=findDimensions;
findDimensions();});
$(function(){
	showTime();
setInterval(showTime, 1000);                                
function timer(obj,txt){
    obj.text(txt);
 }        
function showTime(){                                
 var today = new Date();
 var weekday=new Array(7)
 weekday[0]="星期日"
 weekday[1]="星期一"
 weekday[2]="星期二"
 weekday[3]="星期三"
 weekday[4]="星期四"
 weekday[5]="星期五"
 weekday[6]="星期六"
 var y=today.getFullYear()+"年";
 var month=(today.getMonth()+1)+"月";
 var td=today.getDate()+"日";
 var d=weekday[today.getDay()];
 var h=today.getHours();
 var m=today.getMinutes();
 var s=today.getSeconds();        
 timer($("#Y"),y);
 timer($("#MH"),month);        
 timer($("#TD"),td);        
 timer($("#D"),d);
 timer($("#H"),h);
 timer($("#M"),m);
 timer($("#S"),s);
 } 
			
   $(".sy,.wzgl,.flgl,.hygl,.plgl,.rlgl,.hzgl").click(function(){
 $(".slist").animate({height: 'toggle', opacity: 'hide'}, "fast");
	$(".one").removeClass("current");
	$(this).addClass("current");
	});  
   $(".two").click(function(){
	$(".two").removeClass("currentl2");
	$(this).addClass("currentl2");
	}); $(".yhgl").click(function(){
	$(".one").removeClass("current");
	$(this).addClass("current");
	$('.two').removeClass("currentl2");
	});    
        
})
	
